package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelCommentTypeMapper;
import com.ktgj.hotel.domain.HotelCommentType;
import com.ktgj.hotel.service.IHotelCommentTypeService;

/**
 * 点评类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class HotelCommentTypeServiceImpl implements IHotelCommentTypeService 
{
    @Autowired
    private HotelCommentTypeMapper hotelCommentTypeMapper;

    /**
     * 查询点评类型
     * 
     * @param commenttypeid 点评类型ID
     * @return 点评类型
     */
    @Override
    public HotelCommentType selectHotelCommentTypeById(Long commenttypeid)
    {
        return hotelCommentTypeMapper.selectHotelCommentTypeById(commenttypeid);
    }

    /**
     * 查询点评类型列表
     * 
     * @param hotelCommentType 点评类型
     * @return 点评类型
     */
    @Override
    public List<HotelCommentType> selectHotelCommentTypeList(HotelCommentType hotelCommentType)
    {
        return hotelCommentTypeMapper.selectHotelCommentTypeList(hotelCommentType);
    }

    /**
     * 新增点评类型
     * 
     * @param hotelCommentType 点评类型
     * @return 结果
     */
    @Override
    public int insertHotelCommentType(HotelCommentType hotelCommentType)
    {
        return hotelCommentTypeMapper.insertHotelCommentType(hotelCommentType);
    }

    /**
     * 修改点评类型
     * 
     * @param hotelCommentType 点评类型
     * @return 结果
     */
    @Override
    public int updateHotelCommentType(HotelCommentType hotelCommentType)
    {
        return hotelCommentTypeMapper.updateHotelCommentType(hotelCommentType);
    }

    /**
     * 批量删除点评类型
     * 
     * @param commenttypeids 需要删除的点评类型ID
     * @return 结果
     */
    @Override
    public int deleteHotelCommentTypeByIds(Long[] commenttypeids)
    {
        return hotelCommentTypeMapper.deleteHotelCommentTypeByIds(commenttypeids);
    }

    /**
     * 删除点评类型信息
     * 
     * @param commenttypeid 点评类型ID
     * @return 结果
     */
    @Override
    public int deleteHotelCommentTypeById(Long commenttypeid)
    {
        return hotelCommentTypeMapper.deleteHotelCommentTypeById(commenttypeid);
    }
}
